package com.prj.ufdm;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class UfdmWebFluxApplication	 implements EnvironmentAware {
	
	private static Environment env; 
	
	public static void main(String[] args) { 
		SpringApplication.run(UfdmWebFluxApplication.class, args); 
		System.out.println("\n UfdmWebFluxApplication "+ env.getProperty("server.port") +" 启动成功................");
	}
	
	public void setEnvironment(Environment environment) {
		env = environment;
	}
	
}
